Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MathUtil = undefined;
exports.MathUtil = /* */function () {
  function _class5() {
    babel_classCallCheck(this, _class5);
  }
  babel_createClass(_class5, null, [{
    key: "getRandomInt",
    value: function getRandomInt(e, t) {
      return Math.floor(Math.random() * (t - e + 1)) + e;
    }
  }, {
    key: "getRandom",
    value: function getRandom(e, t) {
      return Math.random() * (t - e) + e;
    }
  }, {
    key: "getRand",
    value: function getRand(e) {
      var t = 0;
      for (var _a16 = 0; _a16 < e.length; _a16++) {
        t += e[_a16];
      }
      for (var _a17 = 0; _a17 < e.length; _a17++) {
        if (Math.random() * t < e[_a17]) {
          return _a17;
        }
        t -= e[_a17];
      }
    }
  }]);
  return _class5;
}();